package cn.tedu.jewelry.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {
    /**
     * ApiModelProperty：响应结果的说明
     * value：变量的含义
     * example：示例
     * required：是否必填
     * position：返回数据的显示排序位置
     */
    @ApiModelProperty(value = "用户id",example = "1",required = false)
    private Long id;

    @ApiModelProperty(value = "用户名",example = "admin",required = false)
    private String username;

    @ApiModelProperty(value = "用户密码",example = "123456",required = false)
    private String password;

    @ApiModelProperty(value = "用户昵称",example = "admin",required = false)
    private String nick;

    @ApiModelProperty(value = "用户手机",example = "18888888888",required = false)
    private String phone;

    @ApiModelProperty(value = "用户座机",example = "0772-1234567",required = false)
    private String tel;

    @ApiModelProperty(value = "用户邮箱",example = "lizhao8848@126.com",required = false)
    private String email;

    @ApiModelProperty(value = "用户创建时间",example = "2022-02-02 02:02:02",required = false)
    private Date gmtCreated;

    @ApiModelProperty(value = "用户积分",example = "8888",required = false)
    private Long credits;

    @ApiModelProperty(value = "用户账号启用状态1,0",example = "",required = false)
    private Long enable;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nick='" + nick + '\'' +
                ", phone='" + phone + '\'' +
                ", tel='" + tel + '\'' +
                ", email='" + email + '\'' +
                ", gmtCreated=" + gmtCreated +
                ", credits=" + credits +
                ", status=" + enable +
                '}';
    }
}
